package mediator.example;

import lombok.Data;

@Data
public class UnitedNationsSecurityCouncil extends UnitedNations {

    private USA colleague1;

    private Iraq colleague2;


    @Override
    public void declare(String message, Country colleague) {
        if (colleague == colleague1) {
            colleague2.getMessage(message);
        } else {
            colleague1.getMessage(message);
        }
    }
}
